#include "Double_Linked_List.h"

int main()
{
	DoubleList* phead = NULL;
	DoubleList_Init(&phead);
	DoubleList_Push_Front(phead, 1);
	DoubleList_Print(phead);

	DoubleList_Push_Front(phead, 2);
	DoubleList_Print(phead);

	DoubleList_Push_Front(phead, 3);
	DoubleList_Print(phead);

	DoubleList_Push_Front(phead, 4);
	DoubleList_Print(phead);
	DoubleList_Push_Front(phead, 5);
	DoubleList_Print(phead);
	DoubleList_Push_Front(phead, 6);
	DoubleList_Print(phead);
	DoubleList_Push_Front(phead, 7);
	DoubleList_Print(phead);

	DoubleList* Find = DoubleList_Find(phead,4);
	DoubleList_Insert(Find, 555);
	DoubleList_Print(phead);

	DoubleList* Find1 = DoubleList_Find(phead, 6);
	DoubleList_Erase(Find1);
	Find1 = NULL;
	DoubleList_Print(phead);

	DoubleList_Destroy(phead);
	phead = NULL;

	return 0;
}